Previous Book Contents Book Index Next

Inside Macintosh: Programming With MRJToolkit /
Chapter 2 - MRJToolkit Reference / The MRJFileUtils Class
Methods /


findFolder

Returns the path to a special Mac OS folder.

public static File findFolder (MRJOSType 
                     folderType) 
                     throws FileNotFoundException;
folderType
The folder you are looking for. For the list of constants you can specify in this parameter, see "Special Folder Constants" (page 32).
method result
The file object that references the folder you specified.
DISCUSSION
The Mac OS has several special folders that applications often need to access (for example, the Preferences folder); this method searches the startup volume for the desired folder and returns the path. If the folder cannot be found, the method throws FileNotFoundException.

SEE ALSO
The "File Manager" chapter in Inside Macintosh: Files.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
12 NOV 1997